/**
 * "Visual Paradigm: DO NOT MODIFY THIS FILE!"
 * 
 * This is an automatic generated file. It will be regenerated every time 
 * you generate persistence class.
 * 
 * Modifying its content may cause the program not work, or your work may lost.
 */

/**
 * Licensee: DuKe TeAm
 * License Type: Purchased
 */
package smartgrid;

import org.hibernate.Criteria;
import org.orm.PersistentException;
import org.orm.PersistentSession;
import org.orm.criteria.*;

public class VariaveisSistemaCriteria extends AbstractORMCriteria {
	public final IntegerExpression ID;
	public final DateExpression ultimoPovDia;
	public final DateExpression ultimoPovSemana;
	public final DateExpression ultimoPovMes;
	
	public VariaveisSistemaCriteria(Criteria criteria) {
		super(criteria);
		ID = new IntegerExpression("ID", this);
		ultimoPovDia = new DateExpression("ultimoPovDia", this);
		ultimoPovSemana = new DateExpression("ultimoPovSemana", this);
		ultimoPovMes = new DateExpression("ultimoPovMes", this);
	}
	
	public VariaveisSistemaCriteria(PersistentSession session) {
		this(session.createCriteria(VariaveisSistema.class));
	}
	
	public VariaveisSistemaCriteria() throws PersistentException {
		this(smartgrid.SmartgridPersistentManager.instance().getSession());
	}
	
	public VariaveisSistema uniqueVariaveisSistema() {
		return (VariaveisSistema) super.uniqueResult();
	}
	
	public VariaveisSistema[] listVariaveisSistema() {
		java.util.List list = super.list();
		return (VariaveisSistema[]) list.toArray(new VariaveisSistema[list.size()]);
	}
}

